/*
 * @Author: guo wei
 * @LastEditors: [guo wei]
 * @LastEditTime: 2024-01-08 20:05:12
 * @Description: 
 */
import request from '@/utils/request'

// 查询定时任务调度列表
export function buildingTypeInfos(query) {
  return request({
    url: '/buildingTypeInfos',
    method: 'get',
    params: query
  })
}
export function allBuildingTypeInfo(query) {
  return request({
    url: '/allBuildingTypeInfo',
    method: 'get',
    params: query
  })
}
export function addBuildingTypeInfo(data) {
  return request({
    url: '/buildingTypeInfo',
    method: 'post',
   data
  })
}
export function modifyBuildingTypeInfo(data) {
  return request({
    url: '/buildingTypeInfo',
    method: 'put',
   data
  })
}
export function deleteBuildingTypeInfo(data) {
  return request({
    url: `/buildingTypeInfo/${data.buildingTypeInfoId}`,
    method: 'DELETE',
    params:{recordVersion:data.recordVersion}
  })
}
export function colorInfos(query) {
  return request({
    url: '/colorInfos',
    method: 'get',
    params: query
  })
}
export function usedPartInfos(query) {
  return request({
    url: '/allUsedPartInfo',
    method: 'get',
    params: query
  })
}
export function usedPartInfo(data) {
  return request({
    url: `/usedPartInfo/${data.usedPartInfoId}`,
    method: 'DELETE',
    params:{recordVersion:data.recordVersion}
  })
}
export function addUsedPartInfo(data) {
  return request({
    url: `/usedPartInfo`,
    method: 'post',
    data
  })
}
export function modifyUsedPartInfo(data) {
  return request({
    url: `/usedPartInfo`,
    method: 'put',
    data
  })
}
export function getColorSystemInfos(query) {
  return request({
    url: `/colorSystemInfos`,
    method: 'get',
    params: query
  })
}
export function gradeInfos(query) {
  return request({
    url: `/gradeInfos`,
    method: 'get',
    params: query
  })
}
export function addGradeInfos(data) {
  return request({
    url: `/gradeInfo`,
    method: 'post',
    data
  })
}
// 新增颜色
export function addColorInfo(data) {
  return request({
    url: `/colorInfo`,
    method: 'post',
    data
  })
}
// 修改颜色
export function modifyColorInfo(data) {
  return request({
    url: `/colorInfo`,
    method: 'put',
    data
  })
}
// 删除颜色
export function deleteColorInfo(data) {
  return request({
    url: `/colorInfo/${data.colorInfoId}`,
    method: 'delete',
       params:{recordVersion:data.recordVersion}
  })
}
export function modifyGradeInfos(data) {
  return request({
    url: `/gradeInfo`,
    method: 'put',
    data
  })
}
export function deleteGradeInfos(data) {
  return request({
    url: `/gradeInfo/${data.gradeInfoId}`,
    method: 'delete',
       params:{recordVersion:data.recordVersion}
  })
}
// 新增色系
export function addColorSystemInfo(data) {
  return request({
    url: `/colorSystemInfo`,
    method: 'post',
    data
  })
}
// 修改色系
export function modifyColorSystemInfo(data) {
  return request({
    url: `/colorSystemInfo`,
    method: 'put',
    data
  })
}
// 删除色系
export function deleteColorSystemInfo(data) {
  return request({
    url: `/colorSystemInfo/${data.colorSystemInfoId}`,
    method: 'delete',
       params:{recordVersion:data.recordVersion}
  })
}
